package com.kkb.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class HosRegister {
    private Integer id;

    private String name;

    private String idCard;

    private String medical;

    private Double regPrice;

    private String phone;

    private Integer selfPrice;

    private Integer sex;

    private Integer age;

    private String work;

    private Integer lookDoctor;

    private Integer doctorId;

    private Hospitalization hospitalization;

    public Hospitalization getHospitalization() {
        return hospitalization;
    }

    public void setHospitalization(Hospitalization hospitalization) {
        this.hospitalization = hospitalization;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    private Doctor doctor;

    private String remark;

    private Integer state;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date regDate;

    public void setLookDoctor(Integer lookDoctor) {
        this.lookDoctor = lookDoctor;
    }

    public Date getRegDate() {
        return regDate;
    }

    public void setRegDate(Date regDate) {
        this.regDate = regDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard == null ? null : idCard.trim();
    }

    public String getMedical() {
        return medical;
    }

    public void setMedical(String medical) {
        this.medical = medical == null ? null : medical.trim();
    }

    public Double getRegPrice() {
        return regPrice;
    }

    public void setRegPrice(Double regPrice) {
        this.regPrice = regPrice;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getSelfPrice() {
        return selfPrice;
    }

    public void setSelfPrice(Integer selfPrice) {
        this.selfPrice = selfPrice;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work == null ? null : work.trim();
    }

    public Integer getLookDoctor() {
        return lookDoctor;
    }

    public void setLookDoctor(int lookDoctor) {
        this.lookDoctor = lookDoctor;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getState() {
        return state;
    }

    @Override
    public String toString() {
        return "HosRegister{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", medical='" + medical + '\'' +
                ", regPrice=" + regPrice +
                ", phone='" + phone + '\'' +
                ", selfPrice=" + selfPrice +
                ", sex=" + sex +
                ", age=" + age +
                ", work='" + work + '\'' +
                ", lookDoctor=" + lookDoctor +
                ", doctorId=" + doctorId +
                ", hospitalization=" + hospitalization +
                ", doctor=" + doctor +
                ", remark='" + remark + '\'' +
                ", state=" + state +
                ", regDate=" + regDate +
                '}';
    }

    public void setState(Integer state) {
        this.state = state;
    }
}